package com.kefu.chat.vo;

import cn.hutool.core.bean.BeanUtil;
import com.kefu.chat.model.ChatChannelExtModel;
import com.kefu.common.vo.AbstractUpdateVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
public class ChatChannelExtModelUpdateVo extends AbstractUpdateVo<ChatChannelExtModel, String> {
    @NotEmpty
    @ApiModelProperty(value = "主键")
    private String id;

    /**
     * 渠道id
     */
    @NotEmpty
    @ApiModelProperty(value = "渠道id")
    private String channelId;

    /**
     * 外链地址
     */
    @ApiModelProperty(name = "extModelLink", value = "外链地址")
    private String extModelLink;

    /**
     * 拓展名
     */
    @NotEmpty
    @ApiModelProperty(name = "extModelName", value = "拓展名")
    private String extModelName;

    /**
     * 拓展图片
     */
    @NotEmpty
    @ApiModelProperty(name = "extModelPhoto", value = "拓展图片")
    private String extModelPhoto;

    /**
     * 来源
     */
    @ApiModelProperty(name = "extModelSource", value = "来源")
    private Integer extModelSource;

    /**
     * 类型
     */
    @ApiModelProperty(name = "extModelType", value = "类型")
    private Integer extModelType;
    @Override
    public ChatChannelExtModel convert() {
        ChatChannelExtModel info = BeanUtil.toBean(this, ChatChannelExtModel.class);
        return info;
    }
}
